﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="QuiHouseEdit.ascx.cs" Inherits="ZF.WS.UserControls.QuiHouseEdit" %>

 <link href="/css/validator.css" rel="stylesheet" type="text/css" />
 
 
    <script language="javascript" type="text/javascript" src="/js/jqPlugins/jquery.json-2.2.min.js"></script>

    <script src="/js/formValidator.js" type="text/javascript" language="javascript"></script>

    <script src="/js/formValidatorRegex.js" type="text/javascript" language="javascript"></script>

    <script src="/js/jqPlugins/onlypressnum.js" type="text/javascript" language="javascript"></script>
<script>
    var citystr = '<%=Newtonsoft.Json.JsonConvert.SerializeObject(ZF.BLL.DictionaryConfig.HAreaTree)%>';
</script>
    <script src="/js/zfinput.js" type="text/javascript" language="javascript"></script>

    <script>

        $(function() {

            $.formValidator.initConfig({ formid: document.forms[0].id, onerror: function(msg) { alert(msg) } });

            $(".tbTitle").formValidator({ tipid: "tbTitleTip", onshow: "(20字以内。请准确填写物业或小区名称。)", onfocus: "(20字以内。请准确填写物业或小区名称。)", oncorrect: " ", onempty: "(20字以内。请准确填写物业或小区名称。)" })
    .inputValidator({ min: 1, onerror: "输入错误：必须输入物业或小区名称" })
    .inputValidator({ max: 40, onerror: "输入错误：物业或小区名称不能超过20个字" });
            $(".tbAddress").formValidator({ tipid: "tbAddressTip", onshow: "( 字数限制40个)", onfocus: "( 字数限制40个)", oncorrect: " ", onempty: "( 字数限制40个)" })
    .inputValidator({ min: 1, onerror: "输入错误：必须输入物业地址" })
    .inputValidator({ max: 40, onerror: "输入错误：物业地址不能超过40个字" });
            $(".tbTopNum").onlypressnum();

            $(".tbContact").formValidator({ tipid: "tbContactTip", onshow: "( 如王先生)", onfocus: "( 如王先生)", oncorrect: " ", onempty: "( 如王先生)" })
    .inputValidator({ min: 1, onerror: "输入错误：必须输入联系人" });

            $(".tbPhone").formValidator({ tipid: "tbPhoneTip", onshow: "( 固话号码或手机号码，如果有多个用“，”分隔)", onfocus: "( 固话号码或手机号码，如果有多个用“，”分隔)", oncorrect: " ", onempty: "(  固话号码或手机号码，如果有多个用“，”分隔)" })
    .inputValidator({ min: 1, onerror: "输入错误：请至少输入一个联系电话" });

            $(".tbQQ").onlypressnum();

            $(".tbDescription").formValidator({ tipid: "tbDescriptionTip", onshow: " ", onfocus: " ", oncorrect: " ", onempty: " " })
    .inputValidator({ max: 400, onerror: "输入错误：输入字符不能超过200个" });

            $(".tbConstructArea").onlypressnum();
            $(".tbUserArea").onlypressnum();

        });
    
    
    </script>

    <script>
        $(function() {
            $(".tbZFPrice").onlypressnum();
            $(".tbZFPrice").formValidator({ tipid: "tbZFPriceTip", onshow: "(元/月)", onfocus: "(元/月)", oncorrect: " ", onempty: "(元/月)" })
    .inputValidator({ min: 1, onerror: "输入错误：请输入月租" });
 
        });
    </script>

    <script>
        $(function() {
            $(".tbSFPrice").onlypressnum();
            $(".tbSFPrice").formValidator({ tipid: "tbSFPriceTip", onshow: "(万元/套)", onfocus: "(万元/套)", oncorrect: " ", onempty: "(万元/套)" })
    .inputValidator({ min: 1, onerror: "输入错误：请输入售价" });
            $(".tbUnitPrice").onlypressnum();

        });
    </script>
 
 <div class="editContainer">
    <table class=" w100_  edit ">
        <zf:TextBox ID="tbCity" class="dn_" Text="149" runat="server"></zf:TextBox>
        <zf:TextBox ID="tbArea" class="dn_" Text="153" runat="server"></zf:TextBox>
        <tbody>
            <tr>
                <th colspan="4">
                    <div class="c">
                        发布<%=HouseEditPage.Type%>房源信息</div>
                </th>
            </tr>
            <tr>
                <td class="ll">
                    <div class="c">
                        <span class="xh_"></span>范 围：
                    </div>
                </td>
                <td class="lr" colspan="3">
                    <div class="c">
                        <input type="radio" checked="checked" value="1" id="areagz" name="areaType" /><label
                            for="areagz">广州地区</label>
                        <input type="radio" value="2" id="areagd" name="areaType" /><label for="areagd">省内城市</label>
                    </div>
                </td>
            </tr> 
            <tr>
                <td class="ll">
                    <div class="c">
                        <span class="xh_">*</span>
                    <span  class="spCity">区域</span>：
                </td>
                <td class="lr" colspan="3">
                    <div class="c">
                        <select id="selCity" style="width: 100px;" class="mr10_">
                        </select>
                        <span id="spSQ"><span   class="spArea">商圈</span>：<select id="selArea" class="ml10_" style="width: 100px;"></select></span>
                        <span class="zx_ dn_" id="Span1"></span>
                    </div>
                </td>
            </tr>
          
            <tr>
                <td class="ll">
                    <div class="c">
                        <span class="xh_">*</span>户 型：
                    </div>
                </td>
                <td class="lr" colspan="3">
                    <div class="c">
                        <zf:DropDownList ID="ddlHXFan" runat="server" class="ddl">
                            <asp:ListItem Value="0"></asp:ListItem>
                            <asp:ListItem Value="1"></asp:ListItem>
                            <asp:ListItem Value="2"></asp:ListItem>
                            <asp:ListItem Value="3"></asp:ListItem>
                            <asp:ListItem Value="4"></asp:ListItem>
                            <asp:ListItem Value="5"></asp:ListItem>
                            <asp:ListItem Value="6"></asp:ListItem>
                            <asp:ListItem Value="7"></asp:ListItem>
                            <asp:ListItem Value="8"></asp:ListItem>
                        </zf:DropDownList>
                        房
                        <zf:DropDownList ID="ddlHXTin" runat="server" class="ddl">
                            <asp:ListItem Value="0"></asp:ListItem>
                            <asp:ListItem Value="1"></asp:ListItem>
                            <asp:ListItem Value="2"></asp:ListItem>
                            <asp:ListItem Value="3"></asp:ListItem>
                            <asp:ListItem Value="4"></asp:ListItem>
                            <asp:ListItem Value="5"></asp:ListItem>
                        </zf:DropDownList>
                        厅
                        <zf:DropDownList ID="ddlHXYan" runat="server" class="ddl">
                            <asp:ListItem Value="0"></asp:ListItem>
                            <asp:ListItem Value="1"></asp:ListItem>
                            <asp:ListItem Value="2"></asp:ListItem>
                            <asp:ListItem Value="3"></asp:ListItem>
                            <asp:ListItem Value="4"></asp:ListItem>
                            <asp:ListItem Value="5"></asp:ListItem>
                        </zf:DropDownList>
                        阳
                        <zf:DropDownList ID="ddlHXChu" runat="server" class="ddl">
                            <asp:ListItem Value="0"></asp:ListItem>
                            <asp:ListItem Value="1"></asp:ListItem>
                            <asp:ListItem Value="2"></asp:ListItem>
                            <asp:ListItem Value="3"></asp:ListItem>
                            <asp:ListItem Value="4"></asp:ListItem>
                            <asp:ListItem Value="5"></asp:ListItem>
                        </zf:DropDownList>
                        厨
                        <zf:DropDownList ID="ddlHXWei" runat="server" class="ddl">
                            <asp:ListItem Value="0"></asp:ListItem>
                            <asp:ListItem Value="1"></asp:ListItem>
                            <asp:ListItem Value="2"></asp:ListItem>
                            <asp:ListItem Value="3"></asp:ListItem>
                            <asp:ListItem Value="4"></asp:ListItem>
                            <asp:ListItem Value="5"></asp:ListItem>
                        </zf:DropDownList>
                        卫 <span class="zx_" id="Span6"></span>
                    </div>
                </td>
            </tr>
           
            <tr id="Tr1" runat="server" key="1">
                <td class="rl">
                    <div class="c">
                        <span class="xh_">*</span>月 租：
                    </div>
                </td>
                <td class="rr" colspan="3">
                    <div class="c">
                        <zf:TextBox runat="server" ID="tbZFPrice" class="sstxt"></zf:TextBox>
                        <span class="zx_" id="tbZFPriceTip"></span>
                    </div>
                </td>
            </tr>
            
            <tr id="Tr2" runat="server" key="2">
                <td class="ll">
                    <div class="c">
                        <span class="xh_">*</span>售 价：
                    </div>
                </td>
                <td class="lr"  colspan="3">
                    <div class="c">
                        <zf:TextBox runat="server" ID="tbSFPrice" class="stxt"></zf:TextBox>
                        <span class="zx_" id="tbSFPriceTip">万元/套</span>
                    </div>
                </td>
               <%-- <td class="rl">
                    <div class="c">
                        <span class="xh_"></span>单 价：
                    </div>
                </td>
                <td class="rr">
                    <div class="c">
                        <zf:TextBox runat="server" ID="tbUnitPrice" class="stxt"></zf:TextBox><span class="zx_"
                            id="tbUnitPriceTip">元/平方米[按建筑面积计算] </span>
                    </div>
                </td>--%>
            </tr>
             <tr>
                <td class="ll">
                    <div class="c">
                        <span class="xh_"></span>物业类型：
                    </div>
                </td>
                <td class="lr">
                    <div class="c">
                        <zf:DropDownList ID="ddlHouseType" runat="server" class="ddl">
                        </zf:DropDownList>
                    </div>
                </td>
                <td class="ll">
                    <div class="c">
                        <span class="xh_"></span>产权归属：
                    </div>
                </td>
                <td class="lr">
                    <div class="c">
                        <zf:DropDownList ID="ddlProperty" runat="server" class="ddl">
                        </zf:DropDownList>
                    </div>
                </td>
            </tr>
            <tr>
                <td class="ll">
                    <div class="c">
                        <span class="xh_"></span>楼 层：
                    </div>
                </td>
                <td class="lr">
                    <div class="c">
                        共<zf:TextBox runat="server" ID="tbTopNum" class="ssstxt"></zf:TextBox>层 第<zf:TextBox
                            runat="server" ID="tbCutNum" class="ssstxt"></zf:TextBox>层
                    </div>
                </td>
                <td class="rl">
                    <div class="c">
                        <span class="xh_"></span>朝 向：
                    </div>
                </td>
                <td class="rr">
                    <div class="c">
                        坐
                        <zf:DropDownList ID="ddlDirection" runat="server" class="ddl">
                        </zf:DropDownList>向
                        
                        <zf:DropDownList ID="ddlDirection1" runat="server"   class="ddl">
                        </zf:DropDownList>
                    </div>
                </td>
            </tr>
            <tr>
                <td class="ll">
                    <div class="c">
                        <span class="xh_"></span>房间装修：
                    </div>
                </td>
                <td class="lr" colspan="3">
                    <div class="c divDecoration">
                        <zf:RadioButtonList runat="server" ID="rblDecoration" RepeatDirection="Horizontal">
                        </zf:RadioButtonList>
                    </div>

                    <script>

                        $(".divDecoration input")[2].click();
                        //$(".divDecoration input[value=2]")[0].checked = true;
                    </script>

                </td>
            </tr>
            <tr>
                <td class="ll">
                    <div class="c">
                        <span class="xh_"></span>基础设施：
                    </div>
                </td>
                <td class="lr" colspan="3">
                    <div class="c divBaseFacility">
                        <zf:CheckBoxList runat="server" ID="cblBaseFacility" RepeatLayout="Flow" RepeatDirection="Horizontal">
                        </zf:CheckBoxList>

                        <script>
                            $(".divBaseFacility input")[0].checked = true;
                            $(".divBaseFacility input")[1].checked = true;
                        </script>

                    </div>
                </td>
            </tr>
              
            <tr>
                <td class="ll">
                    <div class="c">
                        <span class="xh_"></span>配备设施：
                    </div>
                </td>
                <td class="lr" colspan="3">
                    <div class="c">
                        <zf:CheckBoxList runat="server" ID="cblWithFacility" RepeatDirection="Horizontal">
                        </zf:CheckBoxList>
                    </div>
                </td>
            </tr>
             <tr>
                <td class="ll">
                    <div class="c">
                        <span class="xh_"></span>周边配套：
                    </div>
                </td>
                <td class="lr" colspan="3">
                    <div class="c">
                        <zf:CheckBoxList runat="server" ID="cblPeriphery" RepeatDirection="Horizontal">
                        </zf:CheckBoxList>
                    </div>
                </td>
            </tr>
            <tr>
                <td class="ll">
                    <div class="c">
                        <span class="xh_"></span>有效天数：
                    </div>
                </td>
                <td class="lr" colspan="3">
                    <div class="c">
                        <zf:DropDownList runat="server" ID="ddlPeriod" class="dll">
                            <asp:ListItem Value="3" Text="3天"></asp:ListItem>
                            <asp:ListItem Value="7" Selected="True" Text="7天"></asp:ListItem>
                            <asp:ListItem Value="15" Text="15天"></asp:ListItem>
                            <asp:ListItem Value="30" Text="1个月"></asp:ListItem>
                            <asp:ListItem Value="90" Text="3个月"></asp:ListItem>
                        </zf:DropDownList>
                    </div>
                </td>
            </tr>
            <tr>
                <td class="ll">
                    <div class="c">
                        <span class="xh_">*</span>联系人：
                    </div>
                </td>
                <td class="lr">
                    <div class="c">
                        <zf:TextBox runat="server" ID="tbContact" class="stxt"></zf:TextBox>
                        <span class="zx_" id="tbContactTip"></span>
                    </div>
                </td>
                <td class="rl">
                    <div class="c">
                        <span class="xh_"></span>Q Q：
                    </div>
                </td>
                <td class="rr">
                    <div class="c">
                        <zf:TextBox runat="server" ID="tbQQ" class="stxt"></zf:TextBox>
                        <span class="zx_" id="Span10">（客户可以直接通过QQ与你取得联系）</span>
                    </div>
                </td>
            </tr>
            <tr>
                <td class="ll">
                    <div class="c">
                        <span class="xh_">*</span>联系电话：
                    </div>
                </td>
                <td class="lr" colspan="3">
                    <div class="c">
                        <zf:TextBox runat="server" ID="tbPhone" class="ltxt"></zf:TextBox>
                        <span class="zx_" id="tbPhoneTip"></span>
                    </div>
                </td>
            </tr>
             <tr>
                <td class="ll">
                    建筑年代：
                </td>
                <td class="lr" colspan="3">
                    <div class="c">
                        <zf:TextBox runat="server" ID="tbAge" class="txt"></zf:TextBox>
                        <span class="zx_" id="tbAgeTip">（如：2008年）</span>
                    </div>
                </td>
            </tr>
            <tr>
                <td class="ll">
                    <div class="c">
                        <span class="xh_"></span>使用面积：
                    </div>
                </td>
                <td class="lr">
                    <div class="c">
                        <zf:TextBox runat="server" ID="tbUserArea" class="sstxt"></zf:TextBox><span class="zx_"
                            id="Span3">平米</span>
                    </div>
                </td>
                <td class="rl">
                    <div class="c">
                        <span class="xh_"></span>建筑面积：
                    </div>
                </td>
                <td class="rr">
                    <div class="c">
                        <zf:TextBox runat="server" ID="tbConstructArea" class="sstxt"></zf:TextBox>
                        <span class="zx_" id="Span2">平米</span>
                    </div>
                </td>
            </tr>
 
            <tr>
                <td class="ll">
                    <div class="c">
                        <span class="xh_"></span>备 注(可填写其他设备、 个人要求等， 字数不超过200字。)
                    </div>
                </td>
                <td class="lr" colspan="3">
                    <div class="c">
                        <zf:TextBox runat="server" ID="tbDescription" class="mstxt"></zf:TextBox>
                        <span class="zx_" id="tbDescriptionTip"></span>
                    </div>
                </td>
            </tr>
        </tbody>
 
         
        <tbody>
            <tr class="b">
                <td colspan="4">
                    <div>
                        <zf:Button BindOper="AddNew" ID="btAdd" class="linkbtn addSubmit" runat="server"
                            Text=" 发 布 " OnClick="AddSubmit"></zf:Button>
                        <zf:Button BindOper="Edit" ID="btEdit" class="linkbtn" runat="server" Text=" 修 改 "
                            OnClick="EditSubmit"></zf:Button>
                        <input type="button" class="linkbtn" value=" 取 消 " onclick="GoBack();" />
                    </div>
                </td>
            </tr>
        </tbody>
    </table>
</div>